package com.brush.app.domain.req.question;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Getter
@Setter
@ApiModel(value = "QuestionAddReq",description = "添加试题参数")
public class QuestionAddReq {
    /**
     * 科目,app_subject表关联
     */
    @ApiModelProperty(value = "科目id")
    @NotNull(message = "科目不能为空")
    private Long subjectId;

    /**
     * 课程id,app_course表关联
     */
    @ApiModelProperty(value = "课程id")
    @NotNull(message = "课程不能为空")
    private Long courseId;

    /**
     * 试题类型 sys_question_type
     */
    @ApiModelProperty(value = "试题类型")
    @NotBlank(message = "试题类型不能为空")
    private String questionType;

    /**
     * 题目分数
     */
    @ApiModelProperty(value = "题目分数")
    @NotNull(message = "题目分数不能为空")
    private Double score;

    /**
     * 试题难度 sys_difficulty
     */
    @ApiModelProperty(value = "试题难度")
    @NotBlank(message = "试题难度不能为空")
    private String difficult;

    /**
     * 试题内容
     */
    @ApiModelProperty(value = "试题内容")
    @NotBlank(message = "试题内容不能为空")
    private String subject;

    /**
     * 正确答案
     */
    @ApiModelProperty(value = "正确答案")
    private String correct;

    /**
     * 试题解析
     */
    @ApiModelProperty(value = "试题解析")
    private String analysis;


    /**
     * 会员等级
     */
    @ApiModelProperty(value = "会员等级")
    @NotNull(message = "会员等级不能为空")
    private Integer vipLevel;

    /**
     * 状态（0正常 1停用）
     */
    @ApiModelProperty(value = "状态")
    @NotBlank(message = "状态不能为空")
    private String status;

    @ApiModelProperty(value = "多选题答案")
    private String[] correctMutil;

    /**
     * 试题选项
     */
    @ApiModelProperty(value = "试题选项")
    private List<OptionItem> choose;
}
